package com.gxa.community.admin.service.system;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gxa.community.core.pojo.domain.Admin;
import com.gxa.community.core.utils.R;

import java.util.Set;

/**
 * 作者： Juran on 2022-07-23 18:22
 * 作者博客：iit.la
 */
public interface LoginService extends IService<Admin> {

    Admin queryAdminByName(String username);

    Set<String> queryPermissions(String name);

    boolean loginOut(String loginAct, int userId);

    void updateAdminLoginStatus(String username, Integer id);

    R queryUserInfoByUserId(String token);
}
